<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../static/css/font.css">
    <link rel="stylesheet" href="../../static/css/weadmin.css">
    <script src="https://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js"></script>
    <script src="../../static/js/classroom_managment.js" type="text/javascript" charset="utf-8"></script>

</head>


<body>
<div class="weadmin-body">
    <form class="layui-form" name="form1" >


        <div class="layui-form-item">
            <label for="building" class="layui-form-label">
                <span class="we-red">*</span>教学楼号
            </label>
            <div class="layui-input-inline">
                <input onkeypress="onlyNum()" type="text" id="building" name="building" required="" lay-verify="realname"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="we-red">*</span>
            </div>
        </div>


        <div class="layui-form-item">
            <label for="room" class="layui-form-label">
                <span class="we-red">*</span>教室号
            </label>
            <div class="layui-input-inline">
                <input  onkeypress="onlyNum()" type="text" id="room" name="room" required="" lay-verify="realname"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="we-red">*</span>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="classroom_capacity" class="layui-form-label">
                <span class="we-red">*</span>教室容量
            </label>
            <div class="layui-input-inline">
                <input  onkeypress="onlyNum()" type="text" id="classroom_capacity" name="classroom_capacity" required="" lay-verify="email"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="we-red">*</span>
            </div>
        </div>



        <div class="layui-form-item">
            <label for="multimedia" class="layui-form-label">
                <span class="we-red">*</span>是否有多媒体
            </label>
            <div class="layui-input-inline">
                <input type="text" id="multimedia" name="multimedia" required="" lay-verify="repass"
                       autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button  onclick="classrooms_add()" class="layui-btn" lay-filter="add" lay-submit="">增加</button>
        </div>
    </form>
</div>

<script>
    function onlyNum(){
        if(!((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105)))
            alert("请输入数字！");
    }
</script>
</body>

</html>